/**
 * Copyright (c) 2002-2011 旭鸣信息
 * All rights reserved. 
 * File：PurviewSessionFactoryProvider.java
 * History:
 *       2012-1-2: Initially created, tangkf.
 */
package com.xteam.db;

import org.hibernate.SessionFactory;


/**
 * 由SPRING 配置文件注入
 * 权限部分的 sessionfactory 提供类
 * @author tangkf  ---2012-1-2
 */
public class PurviewSessionFactoryProvider implements SessionFactoryProvider{
	
	SessionFactory sessionFactory	= null;

	/**
	 * 返回sessionfactory
	 * @see com.xteam.db.SessionFactoryProvider#generateSessionFactory()
	 */
	public SessionFactory generateSessionFactory() {
		return sessionFactory;
	}

	/**
	 * @return 属性sessionFactory的值.
	 */
	public SessionFactory getSessionFactory() {
		return this.sessionFactory;
	}

	/**
	 * @param sessionFactory 属性sessionFactory.
	 */
	public void setSessionFactory(SessionFactory sessionFactory) {
		this.sessionFactory = sessionFactory;
	}
}